/*
 * Copyright (c) 2018 by TangChenBeiJian Information Technology Co.Ltd.
 *           All rights reserved
 */

package org.cx.constant;

import org.apache.commons.lang3.builder.ToStringBuilder;


public enum UploadCodeType {
    SYSTEM_ERROR(-99999, "系统错误，请联系管理员！"),
    TABLE_NOT_FOUND(-1, "表名不能为空"),//columns
    COLUMNS_NOT_FOUND(-2, "列名不能为空"),
    LIST_NOT_FOUND(-3, "列表为空"),
    STRING_LENGTH_TOO_LONG(-4, "字符串长度过长"),
    NOT_NULL(-5, "必填字段不能为空"),
    IS_EXIST(-6, "不存在"),
    ;

    private int code;
    private String message;


    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    UploadCodeType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }


}